/////////////////////////////////////////////////////////////////////////////
// Name:        setting.h
// Purpose:     
// Author:      Herry Sugiharto
// Modified by: 
// Created:     14/07/2009 23:40:02
// RCS-ID:      
// Copyright:   Copyright (c) 2000, 2008 Krida Software Division
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _SETTING_H_
#define _SETTING_H_


/*!
 * Includes
 */

////@begin includes
#include "wx/notebook.h"
#include "wx/valtext.h"
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_SETTING 10009
#define ID_NOTEBOOK 10011
#define ID_PANEL 10012
#define ID_CHOICE_PAYMENT 10001
#define ID_CHOICE_CARD 10002
#define ID_PANEL1 10013
#define ID_TEXTCTRL 10014
#define ID_TEXTCTRL1 10003
#define ID_TEXTCTRL2 10004
#define ID_TEXTCTRL3 10005
#define SYMBOL_SETTING_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_SETTING_TITLE _("Settings")
#define SYMBOL_SETTING_IDNAME ID_SETTING
#define SYMBOL_SETTING_SIZE wxDefaultSize
#define SYMBOL_SETTING_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * Setting class declaration
 */

class Setting: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( Setting )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    Setting();
    Setting( wxWindow* parent, wxWindowID id = SYMBOL_SETTING_IDNAME, const wxString& caption = SYMBOL_SETTING_TITLE, const wxPoint& pos = SYMBOL_SETTING_POSITION, const wxSize& size = SYMBOL_SETTING_SIZE, long style = SYMBOL_SETTING_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_SETTING_IDNAME, const wxString& caption = SYMBOL_SETTING_TITLE, const wxPoint& pos = SYMBOL_SETTING_POSITION, const wxSize& size = SYMBOL_SETTING_SIZE, long style = SYMBOL_SETTING_STYLE );

    /// Destructor
    ~Setting();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin Setting event handler declarations

    /// wxEVT_INIT_DIALOG event handler for ID_SETTING
    void OnInitDialog( wxInitDialogEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_SAVE
    void OnSaveClick( wxCommandEvent& event );

////@end Setting event handler declarations

////@begin Setting member function declarations

    wxString GetCompanyName() const { return CompanyName ; }
    void SetCompanyName(wxString value) { CompanyName = value ; }

    wxString GetCompanyAddress() const { return CompanyAddress ; }
    void SetCompanyAddress(wxString value) { CompanyAddress = value ; }

    wxString GetCompanyPhone() const { return CompanyPhone ; }
    void SetCompanyPhone(wxString value) { CompanyPhone = value ; }

    wxString GetPrintFooter() const { return PrintFooter ; }
    void SetPrintFooter(wxString value) { PrintFooter = value ; }

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end Setting member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin Setting member variables
private:
    wxString CompanyName;
    wxString CompanyAddress;
    wxString CompanyPhone;
    wxString PrintFooter;
////@end Setting member variables
};

#endif
    // _SETTING_H_
